package com.hand.prantice.ssm.mapper;

import com.hand.prantice.ssm.domain.Role;
import com.hand.prantice.ssm.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 马旭阳
 * @date2019/7/16
 */
@Mapper
public interface UserMapper {
    List<User> queryAllUser();

    User queryUser(@Param("id") Long id);

    List<Role> queryUserRole(@Param("id") Long id);

    void insertUser(@Param("user") User user);

    void updateUser(@Param("user") User user);

    void deleteUser(@Param("user") User user);

    List<User> queryUserByIds(@Param("ids") List<Long> ids);

}
